{extend name="template/base" /}
{block name="content"}
<div class="page-container">
    <form class="mb-20" method="get" action="{:\\think\\Url::build($Request.action)}">
        <input type="text" class="input-text" style="width:250px" placeholder="司机姓名" name="realname" value="{$Request.param.realname}">
        <input type="hidden" name="group_id" value="{$group_id}">
        <button type="submit" class="btn btn-success" id="realname_btn" name=""><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
    </form>
    <!--select2 js 插件-->
    <script type="text/javascript" src="__LIB__/select2-4.0.3/dist/js/select2.min.js"></script>
    <!--select2样式 start -->
    <link href="__LIB__/select2-4.0.3/dist/css/select2.min.css" rel="stylesheet" />

    <div class="cl pd-5 bg-1 bk-gray">
        <span class="l">

        </span>
        <span class="r pt-5 pr-5">
            共有数据 ：<strong>{$total ?? '0'}</strong> 条
        </span>
    </div>
    <input type="hidden" name="id" value="{$vo.id ?? ''}">
    <table class="table table-border table-bordered table-hover table-bg mt-20">
        <thead>
        <tr class="text-c">
            <th width="">分组</th>
            <th width="">司机姓名</th>
            <th width="">司机手机号码</th>
            <th width="50px"  class="txt">司机中止原因</th>
            <th width="100px">出发日期</th>
            <th width="100px">中止日期</th>
        </tr>
        </thead>
        <tbody>
        <?php

        ?>
        {volist name="reverse" id="driver_user"}
        <tr class="text-c">
            <td>{$group_id}</td>
            <td>{$driver_user.realname}</td>
            <td>{$driver_user.mobile}</td>
            <td><span>{$driver_user.suspend_reason | cut_out}</span></td>
            <td>{$driver_user.go_date | date='Y-m-d H:i:s',###}</td>
            <td>{$driver_user.end_date | date='Y-m-d H:i:s',###}</td>
        </tr>
        {/volist}
    </table>
    <div class="page-bootstrap">{$page ?? ''}</div>
</div>
{/block}
{block name="script"}
<script type="text/javascript" src="__LIB__/Validform/5.3.2/Validform.min.js"></script>
<script type="text/javascript" src="__LIB__/template/template.js"></script>
<script>
    $(function () {
        $(function () {
            var tag = $("#tag").select2({
                language: "zh-CN", //设置 提示语言
                width: "100%", //设置下拉框的宽度
                theme: "classic"
            });
            {notempty name = "Request.param.tag"}
            tag.val("{$Request.param.tag}").trigger("change");
            {/notempty}
            })
        var driver_rank_id = $("#driver_rank_id").select2({
            language: "zh-CN", //设置 提示语言
            width: "100%", //设置下拉框的宽度
            theme: "classic"
        });
        {notempty name = "Request.param.driver_rank_id"}
        driver_rank_id.val("{$Request.param.driver_rank_id}").trigger("change");
        {/notempty}

        $("[name='driver_user_id'][value='{$vo.driver_user_id ?? ''}']").attr("checked", true);
        $("#form").Validform({
            tiptype: 2,
            ajaxPost: true,
            showAllError: true,
            callback: function (ret){
                ajax_progress(ret);
            }
        });
    })
</script>
{/block}
